package com.lsj.controller;

import com.lsj.task.TokenTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @Autowired
    TokenTask tokenTask;

    @GetMapping("/index.html")
    public String index(String code,Model model){
        model.addAttribute("msg",tokenTask.getData(code));
        return "index";
    }

}
